package com.familytree.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;

@Data
@TableName("members")
public class Member {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String name;
    
    private LocalDate birthDate;
    
    private LocalDate deathDate;

    @TableField(exist = false)
    private LocalDate marriageDate;
    
    private String gender;
    
    private String role;
    
    private String avatarUrl;
    
    private LocalDate createDate;
    
    private LocalDate updateDate;
} 